package com.google.code.c2dmtester;

import android.content.ContextWrapper;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceActivity;

public class PreferencesActivity extends PreferenceActivity
{
    public final static String PREF_REGISTRATION_ID = "registrationId";

    @Override
    protected void onCreate( Bundle savedInstanceState )
    {
        super.onCreate( savedInstanceState );

        this.addPreferencesFromResource( R.xml.settings );
    }

    public static final SharedPreferences getSharedPreferences( final ContextWrapper ctx )
    {
        return ctx.getSharedPreferences( ctx.getPackageName() + "_preferences", MODE_PRIVATE );
    }
}
